package thread;

public class demo10 {
    public static void main(String[] args) {
        Thread thread1=new Thread(()->{
            System.out.println("thread1");
            Thread thread2=new Thread(()->{
                System.out.println("thread2");
            });
            thread2.start();
        });
        thread1.start();
    }

}
